import request from '@/utils/request'

// 查询检查项检验项处置项记录(开立的)列表
export function listNon_drug_item_record(query) {
  return request({
    url: '/dms/non_drug_item_record/list',
    method: 'get',
    params: query
  })
}

// 查询 缴费|退费 检查项检验项处置项记录(开立的)列表
export function getListNon_drug_item_record(query) {
  return request({
    url: '/dms/non_drug_item_record/getList',
    method: 'get',
    params: query
  })
}


// 查询检查项检验项处置项记录(开立的)详细
export function getNon_drug_item_record(id) {
  return request({
    url: '/dms/non_drug_item_record/' + id,
    method: 'get'
  })
}

// 新增检查项检验项处置项记录(开立的)
export function addNon_drug_item_record(data) {
  return request({
    url: '/dms/non_drug_item_record',
    method: 'post',
    data: data
  })
}

// 修改检查项检验项处置项记录(开立的)
export function updateNon_drug_item_record(data) {
  return request({
    url: '/dms/non_drug_item_record',
    method: 'put',
    data: data
  })
}

// 删除检查项检验项处置项记录(开立的)
export function delNon_drug_item_record(id) {
  return request({
    url: '/dms/non_drug_item_record/' + id,
    method: 'delete'
  })
}

// 导出检查项检验项处置项记录(开立的)
export function exportNon_drug_item_record(query) {
  return request({
    url: '/dms/non_drug_item_record/export',
    method: 'get',
    params: query
  })
}

// 查询非药品项目id
export function getNonDrugIds(registrationId,type) {
  return request({
    url: '/dms/non_drug_item_record/getNonDrugIds?registrationId='+registrationId+'&type='+type,
    method: 'get'
  })
}
